import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    feileilist:null,
    foodbank:false,
    onekongbailist:null,
    twokongbailist:null,
    zhonghe:[],
  },
  mutations: {
    increment (state,playold) {
      state.feileilist = playold.list
    },
    sofoodbank(state,playold){
      state.foodbank = playold;
    },
    setonekongbailist(state,playold){
      state.onekongbailist = playold
    },
    settwokongbailist(state,playold){
      state.twokongbailist = playold
    },
    setzhonghe(state,playold){
      state.zhonghe = playold
    },
  },
  actions: {

  },
  modules: {
    
  }
})
